const Http = require("./http");
const Api = require("./api");

class UserService {
  static addAppra(data) {
    return Http.request({
      method: "POST",
      url: Api.addAppra,
      data: data,
    });
  }

  static login(data) {
    return Http.request({
      url: Api.login,
      data: data,
    });
  }

  static pageList(data) {
    return Http.request({
      url: Api.pageList,
      data: data,
    });
  }
  static getAppra(data) {
    return Http.request({
      url: Api.getAppra,
      data: data,
    });
  }

  static updateBC(data) {
    return Http.request({
      url: Api.updateBC,
      data: data,
    });
  }
  static getAllArticle(data) {
    return Http.request({
      url: Api.getAllArticle,
      data: data,
    });
  }
  static getArticleDetail(data) {
    return Http.request({
      url: Api.getArticleDetail,
      data: data,
    });
  }

  static getByOuterid(data) {
    return Http.request({
      url: Api.getByOuterid,
      data: data,
    });
  }
}
module.exports = UserService;
